//
//  MVVMViewModel.m
//  Depressed.domo
//
//  Created by rimi on 16/5/26.
//  Copyright © 2016年 薛涛. All rights reserved.
//

#import "MVVMViewModel.h"
#import "MVVMModel.h"
@interface MVVMViewModel()
/**  数据模型 */
@property (nonatomic, strong) MVVMModel *model;
@end
@implementation MVVMViewModel
-(instancetype)init{
    if (self = [super init]) {
        self.model = [[MVVMModel alloc]init];
    }
    return self;
}

- (void)loadData{
    [self.model loadDataImages];
}
- (NSInteger)tableViewNumberOfSection:(NSInteger)section{
    return self.model.images.count;
}
-(UIImage *)tableViewCellImageWithIndexPath:(NSIndexPath *)indexPath{
    return self.model.images[indexPath.row];
}
@end
